module.exports = {
    devServer: {
        disableHostCheck: true,
        port: 8081,
        hotOnly: true,
        public: '0.0.0.0:8081',
        proxy: {
            '/api': {
                target: 'http://127.0.0.1:7001',
                changeOrigin: true,
                secure: false,
            },
        },
        compress: true,
    },
    publicPath: '/',

    css: {
        extract: process.env.NODE_ENV !== 'development',
        sourceMap: false,
        requireModuleExtension: true,
        loaderOptions: {
            stylus: {
                'resolve url': true,
                import: [
                    './src/theme',
                ],
            },
        },
    },
};

